Ejemplo n.º 1
0
        public bool Create(ApiLocation apiLocation)
        {
            Location location = new Location
            {
                ID         = apiLocation.ID,
                Name       = apiLocation.Name,
                CustomerID = apiLocation.CustomerID
            };

            return(locationManager.RecordLocation(location));
        }
        public bool Create(ApiLocation apiLocation)
        {
            //string id = User.Identity.Name;
            Location location = new Location
            {
                ID         = apiLocation.ID,
                Name       = apiLocation.Name,
                CustomerID = Helper.getCustID()
            };

            return(locationManager.RecordLocation(location));
        }