Ejemplo n.º 1
0
        public JsonResult EditBrand(BrandVM data)
        {
            string message;
            Brand  brand = new Brand()
            {
                ID           = data.ID,
                Name         = data.Name,
                CreatedBy    = data.CreatedBy,
                CreationDate = data.CreationDate,
                UpdatedBy    = data.UpdatedBy,
                UpdatedDate  = data.UpdatedDate,
                Image        = data.Image
            };

            return(Json(new { done = brandDAL.Edit(brand, out message),
                              message, edit = true },
                        JsonRequestBehavior.AllowGet));
        }