public Byod Approve(Byod byod) { EByod eByod = EByod(byod); eByod = _iDByod.Approve(eByod); return(Byod(eByod)); }
public Byod Update(Byod byod) { EByod eByod = EByod(byod); eByod = _iDByod.Update(eByod); return(Byod(eByod)); }
public Byod Update(Byod byod) { EByod eByod = EByod(byod); eByod.UpdatedDate = DateTime.Now; eByod = _iDByod.Update(eByod); return(Byod(eByod)); }
public Byod Create(Byod byod) { EByod eByod = EByod(byod); eByod = _iDByod.Create(eByod); //var account = _iFUser.ReadUser(Username); return(Byod(eByod)); }
public ActionResult Update(Byod byod) { try { byod = _iFByod.Update(byod); return(RedirectToAction("Index", "Byod")); } catch (Exception ex) { return(View(byod)); } }
public ActionResult Update(int id) { try { Byod byod = _iFByod.Read(id); return(View(byod)); } catch (Exception ex) { return(View(new Byod())); } }
public ActionResult Update(int id) { try { Byod byod = _iFByod.Read(id); return View(byod); } catch { return View(new Byod()); } }
public ActionResult Approve(Byod byod) { try { byod = _iFByod.Approve(byod); return(RedirectToAction("Byod")); } catch (Exception ex) { return(View(byod)); } }
public ActionResult Delete(Byod byod) { try { _iFByod.Delete(byod); return(Json("")); } catch (Exception ex) { return(Json(ex)); } }
public ActionResult Update(Byod byod) { try { byod = _iFByod.Update(byod); return RedirectToAction("Index"); } catch { return View(byod); } }
private EByod EByod(Byod byod) { return(new EByod { ApprovedBy = byod.ApprovedBy, ApproverId = byod.ApproverId, ByodId = byod.ByodId, EmployeeId = byod.EmployeeId, RequestedBy = byod.RequestedBy, TypeOfDeviceId = byod.TypeOfDeviceId, BrandName = byod.BrandName, ContactNo = byod.ContactNo, Email = byod.Email, SerialNumber = byod.SerialNumber, }); }
public ActionResult Add(Byod byod) { try { //var account = _iFUser.ReadUser(Username); //byod.EmployeeId = account.EmployeeId; //byod.RequestedBy = account.EmployeeId; //var employee = _iFEmployee.Read(account.EmployeeId); //byod.ApproverId = employee.ManagerEmployeeId; byod = _iFByod.Create(byod); return(RedirectToAction("Index")); } catch (Exception ex) { return(Json(byod)); } }
public ActionResult Create(Byod byod) { try { var account = CurrentUser; byod.EmployeeId = account.EmployeeId; byod.RequestedBy = account.UserId; byod.CreatedBy = account.UserId; if (account.EmployeeId != 0) { var employee = _iFEmployee.Read(account.EmployeeId); byod.ApproverId = employee.ManagerEmployeeId; } byod = _iFByod.Create(byod); return(RedirectToAction("Index")); } catch (Exception ex) { return(Json(ex)); } }
public void Delete(Byod byod) { EByod eByod = EByod(byod); _iDByod.Delete(eByod); }