Example #1
0
        public void Put(int id, [FromBody] TransportProvider value)
        {
            var domain = serv.Get(value.id);

            // TODO employers must only be able to edit their record
            map.Map <TransportProvider, Domain.TransportProvider>(value, domain);
            serv.Save(domain, UserEmail);
        }
Example #2
0
        public void Post([FromBody] TransportProvider value)
        {
            var domain = map.Map <ViewModel.Api.TransportProvider, Domain.TransportProvider>(value);

            serv.Save(domain, UserEmail);
        }