public Entities.ParameterBounds ParamBoundsModelToEntityMapper(ParamaterBoundsModel Bounds) { Entities.ParameterBounds EntityBounds = new Entities.ParameterBounds() { AccountParamID = Bounds.AccountParamID, MaxValue = Bounds.MaxValue, MinValue = Bounds.MinValue, Result = Bounds.Result, AddedOn = DateTime.Now, DefinitionID = Bounds.DefinitionID, }; return(EntityBounds); }
public bool AddBounds(ParamaterBoundsModel Bounds) { try { Entities.ParameterBounds EntityBounds = ParamBoundsModelToEntityMapper(Bounds); ParameterBoundsDal.AddParameterBound(EntityBounds); return(true); } catch (Exception ex) { logger.Info("Error in Get AddBounds"); logger.Error(ex.InnerException); logger.Error(ex.Message); logger.Error(ex.Source); return(false); } }