Exemplo n.º 1
0
 public IHttpActionResult UpdateMaterialList(object obj)
 {
     try
     {
         JObject JsonObject = JObject.Parse(obj.ToString());
         ViewModel.tblMaterialList UpdateMaterialList = JsonObject.ToObject <ViewModel.tblMaterialList>();
         bool ret = BisMaterialList.UpdateMaterialList(UpdateMaterialList);
         if (ret)
         {
             return(Ok(ret));
         }
         else
         {
             return(NotFound());
         }
     }
     catch (Exception ex)
     {
         return(NotFound());
     }
 }
Exemplo n.º 2
0
 public bool UpdateMaterialList(ViewModel.tblMaterialList tblMaterialList)
 {
     return(sqlHelper.RunProcedure("sp_tblMaterialList_Update", tblMaterialList) > 0);
 }
Exemplo n.º 3
0
 public bool DeleteMaterialList(ViewModel.tblMaterialList tblMaterialList)
 {
     return(sqlHelper.RunProcedure("sp_tblMaterialList_Delete", tblMaterialList, true) > 0);
 }
Exemplo n.º 4
0
 public bool AddMaterialList(ViewModel.tblMaterialList tblMaterialList)
 {
     return(sqlHelper.RunProcedure("sp_tblMaterialList_Insert", tblMaterialList) > 0);
 }