Exemplo n.º 1
0
 public IHttpActionResult GetIntegratedUserSiteByID(ViewModel.tblUserSite UserSite)
 {
     try
     {
         JArray JsonPersonelInCompany = BisUserSite.GetIntegratedUserSiteByID(UserSite);
         return(Ok(JsonPersonelInCompany));
     }
     catch
     {
         return(NotFound());
     }
 }
Exemplo n.º 2
0
 public IHttpActionResult GetCountNewUserSiteNotShown()
 {
     try
     {
         ViewModel.tblUserSite userSite = new ViewModel.tblUserSite();
         JArray JsonUserSite            = BisUserSite.GetCountNewUserNotShown(userSite);
         return(Ok(JsonUserSite));
     }
     catch
     {
         return(NotFound());
     }
 }
Exemplo n.º 3
0
 public IHttpActionResult CheckPersonelInCompanyExistInUserSite(object obj)
 {
     try
     {
         JObject JsonObject             = JObject.Parse(obj.ToString());
         ViewModel.tblUserSite userSite = JsonObject.ToObject <ViewModel.tblUserSite>();
         JArray JsonUserSite            = BisUserSite.CheckPersonelInCompanyExistInUserSite(userSite);
         return(Ok(JsonUserSite));
     }
     catch
     {
         return(NotFound());
     }
 }
Exemplo n.º 4
0
 public IHttpActionResult GetUserSiteByNationalCode(object obj)
 {
     try
     {
         JObject JsonObject             = JObject.Parse(obj.ToString());
         ViewModel.tblUserSite userSite = JsonObject.ToObject <ViewModel.tblUserSite>();
         JArray JsonUserSite            = BisUserSite.GetUserSiteJsonDataByNationalCode(userSite);
         return(Ok(JsonUserSite));
     }
     catch
     {
         return(NotFound());
     }
 }
Exemplo n.º 5
0
 public IHttpActionResult UpdateShowDate(ViewModel.tblUserSite UserSite)
 {
     try
     {
         bool ret = BisUserSite.UpdateShowDate(UserSite);
         if (ret)
         {
             return(Ok(ret));
         }
         else
         {
             return(NotFound());
         }
     }
     catch
     {
         return(NotFound());
     }
 }
Exemplo n.º 6
0
 public IHttpActionResult AddUserSiteIntoPersonelInCompany(ViewModel.tblUserSite obj)
 {
     try
     {
         bool ret = BisUserSite.AddUserSiteIntoPersonelInCompany(obj);
         if (ret)
         {
             return(Ok(ret));
         }
         else
         {
             return(NotFound());
         }
     }
     catch
     {
         return(NotFound());
     }
 }
Exemplo n.º 7
0
 public IHttpActionResult UpdaIDPersonelInCompany(object obj)
 {
     try
     {
         JObject JsonObject             = JObject.Parse(obj.ToString());
         ViewModel.tblUserSite userSite = JsonObject.ToObject <ViewModel.tblUserSite>();
         bool ret = BisUserSite.UpdateIDPersonelInCompany(userSite);
         if (ret)
         {
             return(Ok(ret));
         }
         else
         {
             return(NotFound());
         }
     }
     catch
     {
         return(NotFound());
     }
 }