Beispiel #1
0
 /// <summary>
 /// Create unit
 /// </summary>
 /// <param name="unit"></param>
 /// <returns></returns>
 public async Task <bool> CreateUnitAsync(UnitRequest unit)
 {
     return(await _repository.CreateUnitAsync(new Unit
     {
         UnitName = unit.UnitName,
         IsActive = unit.IsActive,
         CreatedBy = unit.CreatedBy,
     }));
 }