private TempFrontParameter TempFrontParameterFromFrontParametter(FrontParameter frontParameter) { return(new TempFrontParameter { Number = frontParameter.Number.ToString(), Top = frontParameter.Slots.Top.ToString(), Bottom = frontParameter.Slots.Bottom.ToString(), Left = frontParameter.Slots.Left.ToString(), Right = frontParameter.Slots.Right.ToString(), BetweenHorizontally = frontParameter.Slots.BetweenHorizontally.ToString(), BetweenVertically = frontParameter.Slots.BetweenVertically.ToString(), BetweenCabinet = frontParameter.Slots.BetweenCabinet.ToString() }); }
public void AddFront(FrontParameter frontParameter) { Logger.Info("Add Front (FrontParameter frontParameter) in Cabinet"); Logger.Debug("FrontParameter: {0}", frontParameter); FrontParameter = frontParameter; try { FrontList = _mapper.Map <List <ElementModel> >(FrontFactory.NewFront(frontParameter.Number, frontParameter.Slots, frontParameter.EnumFront)); } catch (Exception ex) { Logger.Error(ex, "Error Add Front (FrontParameter frontParameter) in Cabinet"); } }