示例#1
0
        public async Task <object> CreateProject(string name, string description, decimal budget,
                                                 [FromBody] List <Reward> rewards)
        {
            try {
                var prjectResult = await project_.CreateProjectAsync(new AddProjects {
                    Budget       = budget,
                    Description  = description,
                    ProjectTitle = name,
                    Rewards      = rewards
                });

                return(true);
            } catch (Exception) {
                return(false);
            }
        }