示例#1
0
 public static void MapFromModel(this ICD10Code entity, ICD10CodeModel model)
 {
     entity.ICD10CodeId = model.ICD10CodeId;
     entity.Text        = model.Text;
     entity.CreatedOn   = model.CreatedOn;
     entity.ModifiedOn  = model.ModifiedOn;
 }
        public ICD10CodeModel getICD10Code(int Id)
        {
            var code = new ICD10CodeModel();

            try
            {
                code = dbHelper.ExecuteSQLAndReturnDataTable("SELECT Id,Code,Description from ICD10CODES  WHERE Id=" + Id).DataTableToModel <ICD10CodeModel>();
            }
            catch (Exception ex)
            {
                throw new ApplicationException(Errors.ExemptionMessage(ex));
            }

            return(code);
        }