public ActionResult AddSquare(int?storeId, int?figureId) //+ { if (figureId == null || storeId == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } try { _figuresService.AddSquareInStore(storeId.Value, figureId.Value); return(RedirectToAction("FigureStoreEdit", new { id = storeId })); } catch (DataNotFoundException ex) { return(RedirectToAction("DataNotFound", "Error", new { message = ex.Message })); } catch (Exception ex) { return(HttpNotFound(ex.Message)); } }