public Section Map(CreateOrEditViewModel createOrEdit)
        {
            Section section = new Section();

              if (createOrEdit.Id != null)
            section = this.handler.Storage.GetRepository<ISectionRepository>().WithKey((int)createOrEdit.Id);

              section.Code = createOrEdit.Code;
              section.Name = createOrEdit.Name;
              return section;
        }
        public Section Map(CreateOrEditViewModel createOrEdit)
        {
            Section section = new Section();

            if (createOrEdit.Id != null)
            {
                section = this.handler.Storage.GetRepository <ISectionRepository>().WithKey((int)createOrEdit.Id);
            }

            section.Code = createOrEdit.Code;
            section.Name = createOrEdit.Name;
            return(section);
        }