Beispiel #1
0
 public static Merchant Map(CreateMerchantDto merchant)
 {
     return(new Merchant
     {
         Name = merchant.Name
     });
 }
Beispiel #2
0
        public async Task <IActionResult> Create(CreateMerchantDto merchant)
        {
            var createdMerchant = await _merchantBc.Add(new Merchant { Name = merchant.Name });

            return(Ok(MerchantMappers.Map(createdMerchant)));
        }