public ActionResult GetPagedUserData(int skip)
        {
            Client = WebApiHelper.Initial();
            var response        = Client.GetAsync(GlobalConst.Api.UserApi + "GetUsersByName\\" + GlobalConst.ConstantChar.UnderScore + "," + skip + "," + GlobalConst.Records.Take).Result;
            var responseContent = response.Content.ReadAsStringAsync().Result;

            Paged.User objUser = JsonConvert.DeserializeObject <Paged.User>(responseContent);
            return(Json(objUser));
        }
 public ActionResult GetUserByUserName(string searchtext, int?skip)
 {
     Paged.User objUser = new Paged.User();
     Client = WebApiHelper.Initial();
     if (skip == null)
     {
         var response        = Client.GetAsync(GlobalConst.Api.UserApi + "GetUsersByName\\" + searchtext + "," + GlobalConst.Records.Skip + "," + GlobalConst.Records.Take).Result;
         var responseContent = response.Content.ReadAsStringAsync().Result;
         objUser = JsonConvert.DeserializeObject <Paged.User>(responseContent);
     }
     else
     {
         var response        = Client.GetAsync(GlobalConst.Api.UserApi + "GetUsersByName\\" + searchtext + "," + skip.Value + "," + GlobalConst.Records.Take).Result;
         var responseContent = response.Content.ReadAsStringAsync().Result;
         objUser = JsonConvert.DeserializeObject <Paged.User>(responseContent);
     }
     return(Json(objUser));
 }