public void Create(Location location)
        {
            try
            {
                var c = crudLocation.Retrieve <Location>(location);

                if (c != null)
                {
                    throw new BusinessException(3);
                }
                else
                {
                    crudLocation.Create(location);
                }
            }
            catch (Exception ex)
            {
                ExceptionManager.GetInstance().Process(ex);
            }
        }
Пример #2
0
 public Location RetrieveById(Location location)
 {
     return(crudLocation.Retrieve <Location>(location));
 }