public bool CheckIfUserIsAdmin(AdminLoginRequestVM loginCredetials) { try { var loginDetails = _loginRepo.GetUserLoginDetails(loginCredetials.UserId).Result; return(loginDetails.RoleId == (int)Roles.Admin); } catch (Exception ex) { throw ex; } }