public async Task <IHttpActionResult> GetRolesMaster(int id) { Roles role = (Roles)await roles.GetRole(id); if (role == null) { return(NotFound()); } return(Ok(role)); }