Пример #1
0
        public int DeleteAssets(int id)
        {
            Trakify_Assets asset = context.Trakify_Assets.Find(id);

            asset.IsDeleted = true;
            return(context.SaveChanges());
        }
Пример #2
0
 public int InsertAsset(Trakify_Assets user)
 {
     return(assetRepository.Insert(user));
 }
Пример #3
0
 public int UpdateAsset(Trakify_Assets user)
 {
     return(assetRepository.Update(user));
 }
Пример #4
0
 public int UpdateAsset(Trakify_Assets asset)
 {
     return(assetService.UpdateAsset(asset));
 }
Пример #5
0
 public int DeleteAsset(Trakify_Assets trakify_Assets)
 {
     return(assetRepository.Delete(trakify_Assets));
 }
Пример #6
0
 public int InsertAsset(Trakify_Assets asset)
 {
     return(assetService.InsertAsset(asset));
 }
Пример #7
0
 public int DeleteAsset(Trakify_Assets trakify_Assets)
 {
     return(assetService.DeleteAsset(trakify_Assets));
 }
Пример #8
0
 public JsonResult DeleteAsset(Trakify_Assets trakify_Assets)
 {
     return(Json(_assetsFacade.DeleteAsset(trakify_Assets)));
 }
Пример #9
0
 public JsonResult UpdateAsset(Trakify_Assets trakify_Assets)
 {
     return(Json(_assetsFacade.UpdateAsset(trakify_Assets)));
 }
Пример #10
0
 public JsonResult SaveAssets(Trakify_Assets trakify_Assets)
 {
     return(Json(_assetsFacade.InsertAsset(trakify_Assets)));
 }