public JsonResult CreateProductOperation(OperationModel operation)
 {
     try
     {
         if (ModelState.IsValid)
         {
             OperationManager operationManager = new OperationManager();
             operationManager.PerformOperation(operation);
         }
     }
     catch (Exception e)
     {
         LogSystem.Instance.PublishErrorMassage(ErrorDictionary.MASSAGE_UNNOUN_ERROR);
     }
     return PrepareJsonResult();
 }
 public ActionResult CreateProductOperation(Int32 Id)
 {
     OperationManager operationManager = new OperationManager();
     OperationModel newOperation = operationManager.CreateNewOperation(Id);
     return PartialView("CreateOperation", newOperation);
 }
        public JsonResult GetStatisticProduct(String sidx, String sord, Int32 page, Int32 rows, Boolean? _search, Int32 productId)
        {
            OperationManager operationMananenger = new OperationManager(productId, page, rows);
            List<OperationDataModel> statisticsList = operationMananenger.GetPageProductOperation(productId, sidx, sord);

            JsonResult result = new JsonResult()
            {
                Data = new { page = page, total = operationMananenger.GetCountPage(), records = operationMananenger.GetCountRecords(productId), rows = statisticsList }
            };
            return result;
        }