/// <summary> /// Converts from the FoundOPS model to the API model /// </summary> /// <param name="fieldModel">The FoundOPS model of a NumericField to be converted</param> /// <returns>A NumericField that has been converted to it's API model</returns> public static NumericField ConvertModel(Core.Models.CoreEntities.NumericField fieldModel) { var field = new NumericField { Id = fieldModel.Id, CreatedDate = fieldModel.CreatedDate, Name = fieldModel.Name, Required = fieldModel.Required, ToolTip = fieldModel.Tooltip, ParentFieldId = fieldModel.ParentFieldId, ServiceTemplateId = fieldModel.ServiceTemplateId, Mask = fieldModel.Mask, DecimalPlaces = fieldModel.DecimalPlaces, Minimum = fieldModel.Minimum, Maximum = fieldModel.Maximum, Value = fieldModel.Value }; field.SetLastModified(fieldModel.LastModified, fieldModel.LastModifyingUserId); return field; }