Example #1
0
 public static function update($st)
 {
     $staff = Staff::find($st['id']);
     $staff = StaffDAO::exchangeArray($staff, $st);
     $staff->update();
     return $staff;
 }
Example #2
0
 public function delete($id)
 {
     $staff = StaffDAO::delete($id);
     if ($staff) {
         Session::flash('message', "Staff dengan id {$id} telah berhasil di hapus!");
     } else {
         Session::flash('message', "Error, Staff dengan {$id} tidak ditemukan!");
     }
     return Redirect::to('/dash/setting/staff');
 }