public JsonResult PostBrand(BrandVM brandVM) { string message; Brand brand = new Brand() { Name = brandVM.Name, Image = " ", CreatedBy = 1, CreationDate = DateTime.Now }; return(Json(new { done = brandDAL.Add(brand, out message), message }, JsonRequestBehavior.AllowGet)); }