public void Edit(int id, [FromBody] MasterViewModel master) { var serv = new MasterDTO { Id = master.Id, Name = master.Name, Age = master.Age, YearsOfWork = master.YearsOfWork }; studioService.EditMaster(serv); studioService.Save(); }
public void Edit(int id, [FromBody] MasterViewModel master) { var serv = new MasterDTO { Id = master.Id, Name = master.Name, Age = master.Age, YearsOfWork = master.YearsOfWork }; studioService.EditMaster(serv); studioService.Save(); }