public ActionResult Create(AddMaterialDto materialDto) { var material = new Material(); material.Name = materialDto.Name; _materialRepository.CreateMaterial(material); return(RedirectToAction("List")); }
public bool CreateMaterial(Material m) { return(repository.CreateMaterial(m)); }
public ActionResult Create(Materials material) { repositoryM.CreateMaterial(material); return(RedirectToAction("Index")); }