Ejemplo n.º 1
0
        /// <summary>
        /// The post action from add view. Save the operation data
        /// </summary>
        /// <param name="operationVm">Operation view model object</param>
        /// <returns>string "true" or "false + error message"</returns>
        public ActionResult AddEditOperation(OperationVm operationVm)
        {
            int    operId;
            string isSaved = OperationHelper.AddEditOperation(operationVm, out operId);

            return(Json(new { isSaved = isSaved, operId = operId }));
        }