public async Task <ActionResult> LicenseFront(LicenseVM licenseVM) { if (ModelState.IsValid) { string userId = User.Claims.Where(x => x.Type == ClaimTypes.Name).FirstOrDefault().Value; string appId = User.Claims.Where(x => x.Type == "AppID").FirstOrDefault().Value; bool uploaded = await uploadService.AddLicenseDataToJob(mapper.Map <LicenseSM>(licenseVM), userId, appId); if (uploaded) { return(Ok()); } } return(new StatusCodeResult(400)); }