public bool DoWork(FooDto fooDto)
        {
            var foo = Map(fooDto);

            var result = _service.Update(foo);

            return(result);
        }
        public FooDto Get(int id)
        {
            var foo = _service.Read(42);

            var dto = new FooDto {
                Id = foo.Id, Name = foo.Name
            };

            return(dto);
        }
 private Foo Map(FooDto fooDto)
 {
     return(new Foo {
         Id = fooDto.Id, Name = fooDto.Name
     });
 }
Example #4
0
 public bool DoWork(FooDto fooDto)
 {
     throw new NotImplementedException();
 }