public void Create([FromBody] MasterViewModel master)
        {
            var serv = new MasterDTO {
                Id = master.Id, Name = master.Name, Age = master.Age, YearsOfWork = master.YearsOfWork
            };

            studioService.CreateMaster(serv);
            studioService.Save();
        }
Beispiel #2
0
        public void Create([FromBody] ServiceViewModel service)
        {
            var serv = new ServiceDTO {
                Id = service.Id, Description = service.Description, Img = service.Img, Name = service.Name, Price = service.Price
            };

            studioService.Create(serv);
            studioService.Save();
        }
Beispiel #3
0
        public void Create([FromBody] ExampleViewModel example)
        {
            var serv = new ExampleDTO {
                Id = example.Id, Name = example.Name, Desc = example.Desc, Img = example.Img
            };

            studioService.CreateExample(serv);
            studioService.Save();
        }