public object DeleteRole([FromBody] RoleMasterUpdateParam PM) { try { RoleMasterBusiness b = new RoleMasterBusiness(); var Result = b.DeleteRole(PM); return(Result); } catch (Exception e) { return(new Error() { IsError = true, Message = e.Message }); } }
public object AddRole([FromBody] RoleMasterParam obj) { try { RoleMasterBusiness save = new RoleMasterBusiness(); var result = save.SaveRole(obj); return(result); } catch (Exception e) { return(new Error() { IsError = true, Message = e.Message }); } }
public object UpdateRole(RoleMasterUpdateParam b) { try { RoleMasterBusiness role = new RoleMasterBusiness(); var Result = role.RoleUpdate(b); return(Result); } catch (Exception e) { return(new Error() { IsError = true, Message = e.Message }); } }
public object GetRoleInfo(UserCredential uc) { try { RoleMasterBusiness role = new RoleMasterBusiness(); var Result = role.GetRole(uc); return(Result); } catch (Exception e) { return(new Error() { IsError = true, Message = e.Message }); } }