Ejemplo n.º 1
0
        public Byod Approve(Byod byod)
        {
            EByod eByod = EByod(byod);

            eByod = _iDByod.Approve(eByod);
            return(Byod(eByod));
        }
Ejemplo n.º 2
0
        public Byod Update(Byod byod)
        {
            EByod eByod = EByod(byod);

            eByod = _iDByod.Update(eByod);
            return(Byod(eByod));
        }
Ejemplo n.º 3
0
        public Byod Update(Byod byod)
        {
            EByod eByod = EByod(byod);

            eByod.UpdatedDate = DateTime.Now;
            eByod             = _iDByod.Update(eByod);
            return(Byod(eByod));
        }
Ejemplo n.º 4
0
        public Byod Create(Byod byod)
        {
            EByod eByod = EByod(byod);

            eByod = _iDByod.Create(eByod);
            //var account = _iFUser.ReadUser(Username);
            return(Byod(eByod));
        }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
 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,
     });
 }
Ejemplo n.º 7
0
 public EByod Approve(EByod eByod)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 8
0
        public Byod Read(int byodId)
        {
            EByod eByod = _iDByod.Read <EByod>(a => a.ByodId == byodId);

            return(Byod(eByod));
        }
Ejemplo n.º 9
0
        public void Delete(Byod byod)
        {
            EByod eByod = EByod(byod);

            _iDByod.Delete(eByod);
        }