public ActionResult SearchUsers(SearchModel model)
        {
            if (model == null)
                return PartialView("_SearchUsers");

            if (!ModelState.IsValid)
                return PartialView("_SearchUsers");

            var service = new SearchUserService(model, User.Identity.GetUserId());
            var resultModel = service.Search();

            return PartialView("_ShowUsers", resultModel);
        }
 public SearchDocumentService(SearchModel model, string userId)
 {
     Model = model;
     UserId = userId;
 }
 public ActionResult SearchDocs()
 {
     var model = new SearchModel();
     return PartialView("Docs/_SearchDocs", model);
 }
 public ActionResult SearchUsers()
 {
     var model = new SearchModel();
     return PartialView("_SearchUsers", model);
 }
 public SearchUserService(SearchModel model , string userId)
 {
     Model = model;
     UserId = userId;
 }