public ActionResult Post([FromBody] ProjectFile projectFile) { return(Ok(projectfileService.Save(projectFile))); }
public ActionResult Create(Guid?id, ProjectFile collection) { _iProjectFileService.Save(id, collection); _unitOfWork.Commit(); return(RedirectToAction("Index", new { collection.ProjectInfoId })); }