public void Delete(Guid id)
        {
            sysBpmsApplicationPageAccess applicationPageAccess = this.Context.sysBpmsApplicationPageAccesses.FirstOrDefault(d => d.ID == id);

            if (applicationPageAccess != null)
            {
                this.Context.sysBpmsApplicationPageAccesses.Remove(applicationPageAccess);
            }
        }
        public ResultOperation Update(sysBpmsApplicationPageAccess applicationPageAccess)
        {
            ResultOperation resultOperation = new ResultOperation();

            if (resultOperation.IsSuccess)
            {
                this.UnitOfWork.Repository <IApplicationPageAccessRepository>().Update(applicationPageAccess);
                this.UnitOfWork.Save();
            }
            return(resultOperation);
        }
Ejemplo n.º 3
0
 public ApplicationPageAccessDTO(sysBpmsApplicationPageAccess applicationPageAccess)
 {
     this.ID = applicationPageAccess.ID;
     this.ApplicationPageID = applicationPageAccess.ApplicationPageID;
     this.DepartmentID      = applicationPageAccess.DepartmentID;
     this.RoleLU            = applicationPageAccess.RoleLU;
     this.UserID            = applicationPageAccess.UserID;
     this.AllowAdd          = applicationPageAccess.AllowAdd;
     this.AllowEdit         = applicationPageAccess.AllowEdit;
     this.AllowDelete       = applicationPageAccess.AllowDelete;
     this.AllowView         = applicationPageAccess.AllowView;
 }
 public void Update(sysBpmsApplicationPageAccess applicationPageAccess)
 {
     this.Context.Entry(applicationPageAccess).State = EntityState.Modified;
 }
 public void Add(sysBpmsApplicationPageAccess applicationPageAccess)
 {
     applicationPageAccess.ID = Guid.NewGuid();
     this.Context.sysBpmsApplicationPageAccesses.Add(applicationPageAccess);
 }