Beispiel #1
0
        /// <summary>
        /// Create the LocationSet.
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public async Task <LocationSetUnitDto> CreateLocationSetUnit(CreateLocationSetUnitInput input)
        {
            var locationSetUnit = new LocationSetUnit(typeoflocationsetid: input.TypeOfLocationSetId, description: input.Description, number: input.Number, organizationunitid: input.OrganizationUnitId);
            await _locationSetUnitManager.CreateAsync(locationSetUnit);

            await CurrentUnitOfWork.SaveChangesAsync();

            return(locationSetUnit.MapTo <LocationSetUnitDto>());
        }
Beispiel #2
0
 /// <summary>
 ///  Updating LocationSet Details
 /// </summary>
 /// <param name="locationSetUnit"></param>
 /// <returns></returns>
 public virtual async Task UpdateAsync(LocationSetUnit locationSetUnit)
 {
     await _locationSetUnitRepository.UpdateAsync(locationSetUnit);
 }
Beispiel #3
0
 public virtual async Task CreateAsync(LocationSetUnit locationSetUnit)
 {
     await _locationSetUnitRepository.InsertAsync(locationSetUnit);
 }