public async Task <ActionResult> UpdateInfo(CompanyUpdateParam param) { int id = int.Parse(User.FindFirstValue(ClaimTypes.NameIdentifier)); if (id != param.CompanyId) { return(Forbid()); } if (await _employerService.UpdateInfo(param)) { return(NoContent()); } return(BadRequest()); }