public static LifecycleStatus MapDtoToLifecycleStatus(ILifecycleStatusDto src) { if (src == null) { return(null); } return(new LifecycleStatus { Id = src.Id, Name = src.Name, CatalogVisible = src.CatalogVisible, Position = src.Position }); }
/// <summary> /// Modifies the status in the database /// </summary> /// <param name="performingUserId">ID of user performing the modification</param> /// <param name="lifecycleStatus"></param> /// <param name="modification">Type of modification to make</param> /// <returns>Modified Lifecycle Status</returns> public ILifecycleStatusDto ModifyLifecycleStatus(int performingUserId, ILifecycleStatusDto lifecycleStatus, EntityModification modification) { return(_lifecycleStatusController.ModifyLifecycleStatus(performingUserId, lifecycleStatus, modification)); }