Exemplo n.º 1
0
        /// <summary>
        /// Updates a storage site.
        /// </summary>
        /// <param name="site">Site to update.</param>
        /// <returns>Returns updated site.</returns>
        public StorageSite UpdateStorageSiteMasterData(Guid id, string name)
        {
            StorageSite site = GetStorageSiteOrThrowNotFoundException(id);

            site.Name = name;
            return(LocationsRepository.UpdateStorageSite(site));
        }