public IHttpActionResult GetPersonalInformations(int id) { try { _logger.Debug(string.Format("ini process - GetModel,idUser: {0}", CurrentIdUser)); PersonalInformation personalinformation = _personalinformationBL.Get(id); _logger.Debug(string.Format("finish GetModel - success,idUser: {0}, modelId: {1}", CurrentIdUser, id)); return(Ok(personalinformation ?? new PersonalInformation())); } catch (Exception ex) { LogError(ex); return(InternalServerError(ex)); } }