public void ReportCp(ReportCp report) { var image = _imageRepository.Find(report.Id, i => i.Reports); image.Reports.Add(report); _imageRepository.SaveChanges(); }
public virtual ActionResult ReportCp(ReportCp reportCp) { _imageService.ReportCp(reportCp); return Json(new {success = true}, JsonRequestBehavior.AllowGet); }