Esempio n. 1
0
        public static ServiceProcess MapDtoToServiceProcess(IServiceProcessDto src)
        {
            if (src == null)
            {
                return(null);
            }

            return(new ServiceProcess
            {
                Id = src.Id,
                Description = src.Description,
                ServiceId = src.ServiceId,
                Name = src.Name,
                Owner = src.Owner,
                Improvements = src.Improvements,
                Benefits = src.Benefits
            });
        }
Esempio n. 2
0
 /// <summary>
 /// Modifies the service process in the database
 /// </summary>
 /// <param name="performingUserId">ID of user performing modification</param>
 /// <param name="serviceProcess"></param>
 /// <param name="modification">Type of modification to make</param>
 /// <returns>Modified Service Process</returns>
 public IServiceProcessDto ModifyServiceProcess(int performingUserId, IServiceProcessDto serviceProcess, EntityModification modification)
 {
     return(_serviceProcessController.ModifyServiceProcess(performingUserId, serviceProcess, modification));
 }