Example #1
0
 public IHttpActionResult DeleteOrganizationalPosition(object obj)
 {
     try
     {
         JObject JsonObject = JObject.Parse(obj.ToString());
         ViewModel.tblOrganizationalPosition DelOrganizationalPosition = JsonObject.ToObject <ViewModel.tblOrganizationalPosition>();
         bool ret = BisOrganizationalPosition.DeleteOrganizationalPosition(DelOrganizationalPosition);
         if (ret)
         {
             return(Ok(ret));
         }
         else
         {
             return(NotFound());
         }
     }
     catch
     {
         return(NotFound());
     }
 }
Example #2
0
 public bool DeleteOrganizationalPosition(ViewModel.tblOrganizationalPosition OrganizationalPosition)
 {
     return(sqlHelper.RunProcedure("sp_tblOrganizationalPosition_DeleteRow", OrganizationalPosition) > 0);
 }
Example #3
0
 public bool AddOrganizationalPosition(ViewModel.tblOrganizationalPosition OrganizationalPosition)
 {
     return(sqlHelper.RunProcedure("sp_tblOrganizationalPosition_Insert", OrganizationalPosition) > 0);
 }