Example #1
0
        // [Route("api/FetchEmployeeData/UpdateEmployees")]
        public int UpdateRole([FromBody] RoleAttribute role)
        {
            RoleContext context = HttpContext.RequestServices.GetService(typeof(RMG.Models.RoleContext)) as RoleContext;

            context.UpdateRole(role);
            return(1);
        }