Spontaneous.WebApp.Services.BackOfficeServiceLayerImpl.GetRestaurantById C# (CSharp) Method

GetRestaurantById() public method

public GetRestaurantById ( string id, string lang = DefaultLang ) : RestaurantModel
id string
lang string
return Spontaneous.WebApp.Models.RestaurantModel
        public RestaurantModel GetRestaurantById(string id, string lang = DefaultLang)
        {
            log.DebugFormat("[GetRestaurantById] id={0}.", id);
            try
            {
                var rest = GetRestaurantBasicById(id).ToRestaurantModel(true, lang, new RestaurantModelBackOffice());
                //return rest;
                return rest;
            }
            catch (Exception e)
            {
                log.ErrorFormat("[GetRestaurantById] error: id={0}, Exception={1}.", id, e.ToString());
                return null;
            }
        }