public ActionResult SaveWhouse()
        {
            if (Session["user"] == null)
            {
                return(RedirectToAction("Home", "Account"));

                ;
            }

            int employeeId            = (int)Session["user"];
            List <LoginInfo> userRole = _account.GetUserRole(employeeId);
            int UserTypeId            = 0;

            foreach (var loginInfo in userRole)
            {
                if (loginInfo.UserTypeId == 1)
                {
                    UserTypeId = 1;
                }
            }
            if (UserTypeId == 1)
            {
                ViewBag.employees = _shopInfo.GetAllEmployees();
                return(View());
            }
            else
            {
                return(RedirectToAction("Home", "Account"));
            }
        }
 public HttpResponseMessage Get()
 {
     try
     {
         var product = _shopInfo.GetAllEmployees();
         if (product != null)
         {
             var message = Request.CreateResponse(HttpStatusCode.Found, product);
             return(message);
         }
         return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "Product not found"));
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex));
     }
 }