public ActionResult Edit([FromBody] CustomerRequest request)
        {
            var customer = request.Customer;

            _context.Entry(customer).State = EntityState.Modified;
            _context.SaveChanges();

            var format = request.TableFormat;

            return(Ok(new Message(true,
                                  "Success",
                                  GetCustomers(format.TableSize, format.SortColumn, format.Asc, format.CurrentPage)
                                  )));
        }
        public ActionResult Edit([FromBody] ProductRequest request)
        {
            var product = request.Product;

            _context.Entry(product).State = EntityState.Modified;
            _context.SaveChanges();

            var format = request.TableFormat;

            return(Ok(new Message(true,
                                  "Success",
                                  GetProducts(format.TableSize, format.SortColumn, format.Asc, format.CurrentPage)
                                  )));
        }