Ejemplo n.º 1
0
        public async Task <bool> Create(CreateWorkshopViewModel ws)
        {
            var model = Workshop.Create(ws.Name,
                                        ws.Address,
                                        ws.Zipcode,
                                        ws.Url,
                                        ws.FacebookLink,
                                        ws.Type,
                                        ws.Access,
                                        ws.Phone,
                                        ws.CvrNumber,
                                        ws.SchooldId);

            workshopRepository.Add(model);
            var result = await uow.SaveChangesAsync();

            return(result);
        }
Ejemplo n.º 2
0
 public Workshop Add(Workshop newWorkshop)
 {
     return(repo.Add(newWorkshop));
 }