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);
        }
示例#2
0
        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);
        }