public ActionResult RemoveFigureFrom(int?storeId, int?figureId, int?idInStore) //++ { if (figureId == null || storeId == null || idInStore == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } try { _figuresService.RemoveFigureFromStore(storeId.Value, figureId.Value, idInStore.Value); return(RedirectToAction("FigureStoreEdit", new { id = storeId })); } catch (DataNotFoundException ex) { return(RedirectToAction("DataCouldNotBeDeleted", "Error", new { message = "Cannot remove figure. " + ex.Message })); } catch (Exception ex) { return(HttpNotFound(ex.Message)); } }