public async Task <IHttpActionResult> DeleteRolesMaster(int id) { RolesMaster rolesMaster = (RolesMaster)await roles.GetRoleMaster(id); if (rolesMaster == null) { return(NotFound()); } await roles.DeleteRolesMaster(rolesMaster); return(Ok(rolesMaster)); }