Exemple #1
0
 public IHttpActionResult DeleteLevelOfPersonelInCompany(object obj)
 {
     try
     {
         JObject JsonObject = JObject.Parse(obj.ToString());
         ViewModel.tblLevelOfPersonelInCompany DelLevelOfPersonelInCompany = JsonObject.ToObject <ViewModel.tblLevelOfPersonelInCompany>();
         bool ret = BisLevelOfPersonelInCompany.DeleteLevelOfPersonelInCompany(DelLevelOfPersonelInCompany);
         if (ret)
         {
             return(Ok(ret));
         }
         else
         {
             return(NotFound());
         }
     }
     catch
     {
         return(NotFound());
     }
 }
Exemple #2
0
 public bool DeleteLevelOfPersonelInCompany(ViewModel.tblLevelOfPersonelInCompany tblLevelOfPersonelInCompany)
 {
     return(sqlHelper.RunProcedure("sp_tblLevelOfPersonelInCompany_Delete", tblLevelOfPersonelInCompany) > 0);
 }
Exemple #3
0
 public bool AddLevelOfPersonelInCompany(ViewModel.tblLevelOfPersonelInCompany tblLevelOfPersonelInCompany)
 {
     return(sqlHelper.RunProcedure("sp_tblLevelOfPersonelInCompany_Insert", tblLevelOfPersonelInCompany) > 0);
 }