public Data.Model.Payments Insert(PaymentInsertRequest req) { var entity = _mapper.Map <Database.Payments>(req); _context.Payments.Add(entity); _context.SaveChanges(); return(_mapper.Map <Data.Model.Payments>(entity)); }
public Data.Model.Payments Insert([FromBody] PaymentInsertRequest req) { return(_service.Insert(req)); }