Exemplo n.º 1
0
 public IActionResult CreateProfile([FromBody] ProfileModel profile)
 {
     try
     {
         var profileId = _domainService.CreateUserProfile(profile);
         if (Guid.Empty == profileId)
         {
             return(BadRequest());
         }
         else
         {
             return(Ok(profileId));
         }
     }
     catch (Exception exp)
     {
         //Log with NLOG
         var result = StatusCode(StatusCodes.Status500InternalServerError, exp);
         return(result);
     }
 }