Beispiel #1
0
        public static ServiceWorkUnit MapDtoToServiceWorkUnit(IServiceWorkUnitDto src)
        {
            if (src == null)
            {
                return(null);
            }

            return(new ServiceWorkUnit
            {
                Id = src.Id,
                ServiceId = src.ServiceId,
                Contact = src.Contact,
                Responsibilities = src.Responsibilities,
                Name = src.Name,
                Department = src.Department
            });
        }
Beispiel #2
0
 /// <summary>
 /// Modifies the service WorkUnit in the database
 /// </summary>
 /// <param name="performingUserId"></param>
 /// <param name="serviceWorkUnit"></param>
 /// <param name="modification">Type of modification to make</param>
 /// <returns>Modified Service WorkUnit</returns>
 public IServiceWorkUnitDto ModifyServiceWorkUnit(int performingUserId, IServiceWorkUnitDto serviceWorkUnit, EntityModification modification)
 {
     return(_serviceWorkUnitController.ModifyServiceWorkUnit(performingUserId, serviceWorkUnit, modification));
 }