//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; } } }
public async Task <string> DeleteAuthRole([FromBody] DeleteAuthGroupDomainModel model) { var result = await _iConfigAccessInterface.DeleteAuthRole(model); return(result); }
public Task <string> DeleteAuthRole(DeleteAuthGroupDomainModel model) { return(_iConfigAccessInterfaceDA.DeleteAuthRole(model)); }