Exemple #1
0
 public JsonResult Build(AjaxBuildViewModel a)
 {
     if (_buildingsHelper.BuildingValidation(a.Id, a.Col, a.Row, User.Identity.Name,a.DealID))
     {
         ProductUpdate();
         _userBuildingsService.Build(a.Id, a.Col, a.Row, a.DealID, User.Identity.Name);
         return new JsonResult { Data = true };
     }
     else
     {
         return new JsonResult { Data = false };
     }
 }
Exemple #2
0
 public JsonResult Destroy(AjaxBuildViewModel a)
 {
     ShowProduct();
     _userBuildingsService.Destroy(User.Identity.Name, a.Id);
     return new JsonResult { Data = true };
 }