Beispiel #1
0
        public async Task <JsonResult> GetAllRole_ByCompanyId()
        {
            try
            {
                int userId = Convert.ToInt32(HttpContext.User.Claims.First(c => c.Type == "UserId").Value);
                var list   = await roleServices.GetAllRole_ByCompanyId(userId, CompanyType.Comprador.ToString().ToUpper());

                return(Json(list));
            }
            catch (Exception ex)
            {
                await errorServices.ErrorNotification(ex, HttpContext.User.Identity.Name, "", "");

                return(Json(ex));
            }
        }