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()); } }
public bool DeleteOrganizationalPosition(ViewModel.tblOrganizationalPosition OrganizationalPosition) { return(sqlHelper.RunProcedure("sp_tblOrganizationalPosition_DeleteRow", OrganizationalPosition) > 0); }
public bool AddOrganizationalPosition(ViewModel.tblOrganizationalPosition OrganizationalPosition) { return(sqlHelper.RunProcedure("sp_tblOrganizationalPosition_Insert", OrganizationalPosition) > 0); }