public BackerOptions CreateBacker([FromBody] BackerWithFileModel backerOptWithFileModel) { BackerOptions backeropt = new BackerOptions { Username = backerOptWithFileModel.Username, Email = backerOptWithFileModel.Email, Wallet = backerOptWithFileModel.Wallet }; BackerOptions backer = backerService.CreateBacker(backeropt); return(backer); }
public BackerOption AddBacker([FromForm] BackerOption backerOption) { if (backerOption == null) { return(null); } BackerOption backerOpt = new BackerOption { FirstName = backerOption.FirstName, LastName = backerOption.LastName, Email = backerOption.Email, Id = backerOption.Id }; BackerOption backerOptions = backerService.CreateBacker(backerOpt); return(backerOptions); }