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 void Approve(int approvedBy, int byodId) { EByod eByod = _iDByod.Read <EByod>(a => a.ByodId == byodId); eByod.UpdatedDate = DateTime.Now; eByod.UpdatedBy = approvedBy; eByod.ApprovedDate = DateTime.Now; eByod.ApprovedBy = approvedBy; _iDByod.Update(eByod); }
private Byod Byod(EByod eByod) { return(new Byod { ApprovedBy = eByod.ApprovedBy, ApproverId = eByod.ApproverId, ByodId = eByod.ByodId, EmployeeId = eByod.EmployeeId, RequestedBy = eByod.RequestedBy, TypeOfDeviceId = eByod.TypeOfDeviceId, BrandName = eByod.BrandName, ContactNo = eByod.ContactNo, Email = eByod.Email, SerialNumber = eByod.SerialNumber, }); }
public EByod Approve(EByod eByod) { throw new NotImplementedException(); }
public Byod Read(int byodId) { EByod eByod = _iDByod.Read <EByod>(a => a.ByodId == byodId); return(Byod(eByod)); }
public void Delete(Byod byod) { EByod eByod = EByod(byod); _iDByod.Delete(eByod); }