public string AddOwnerProject() { var faker = new Bogus.Faker(); var project = new AddProjectViewModel { //Title = faker.Name.JobTitle(), //Description = faker.Name.JobDescriptor(), //MinPrice = 10, //MaxPrice = 100, //Status = Status.Pending, // WTF is this??? RequiredSkill = new List <string> { faker.Company.CompanySuffix(), faker.Company.CompanySuffix() } }; var userId = "75a63a94-ec99-460b-b75f-04282a044035"; ownerService.AddProject(userId, project); return("Added"); }
public async Task <IActionResult> AddProject([FromRoute] string id, [FromBody] AddProjectViewModel model) { var a = _ownerService.AddProject(id, model); return(Ok()); }