public Persons SelectPersonById(int personId)
 {
     try
     {
         Persons responseEntitiy;
         using (var repo = new PersonsRepository())
         {
             responseEntitiy = repo.SelectedById(personId);
             if (responseEntitiy == null)
             {
                 throw new NullReferenceException("Person doesnt exists!");
             }
         }
         return(responseEntitiy);
     }
     catch (Exception ex)
     {
         LogHelper.Log(LogTarget.File, ExceptionHelper.ExceptionToString(ex), true);
         throw new Exception("BusinessLogic:PersonsBusiness::SelectPersonById::Error occured.", ex);
     }
 }