Beispiel #1
0
 //Delete AuthRole
 public async Task <string> DeleteAuthRole(DeleteAuthGroupDomainModel model)
 {
     using (var _context = new YSCMEntities())
     {
         try
         {
             var res = _context.AutorizationGroups.Where(e => e.RoleId == model.RoleId).FirstOrDefault <AutorizationGroup>();
             if (res != null)
             {
                 res.DeleteFlag  = true;
                 res.DeletedDate = DateTime.Now;
                 res.DeletedBy   = model.DeletedBy;
                 await _context.SaveChangesAsync();
             }
             else
             {
                 return("No Record Found");
             }
             return("Data Updated SuccessFully");
         }
         catch (Exception ex)
         { throw ex; }
     }
 }
Beispiel #2
0
        public async Task <string> DeleteAuthRole([FromBody] DeleteAuthGroupDomainModel model)
        {
            var result = await _iConfigAccessInterface.DeleteAuthRole(model);

            return(result);
        }
Beispiel #3
0
 public Task <string> DeleteAuthRole(DeleteAuthGroupDomainModel model)
 {
     return(_iConfigAccessInterfaceDA.DeleteAuthRole(model));
 }