public IActionResult UpdateProject([FromBody] ProjectUpdate project) { if (!Request.Headers.ContainsKey("Authorization")) { return(Unauthorized()); } var data = _alphahomeService.UpdateProject(project); if (data.valid) { return(new JsonResult(data)); } return(BadRequest(data)); }