public void Insert(string Name, string Description, string CreatedBy, DateTime CreatedOn, string ModifiedBy, DateTime ModifiedOn)
        {
            TemplateRegion item = new TemplateRegion();

            item.Name = Name;

            item.Description = Description;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;


            item.Save(UserName);
        }
        public void Update(int TemplateRegionId, string Name, string Description, string CreatedBy, DateTime CreatedOn, string ModifiedBy, DateTime ModifiedOn)
        {
            TemplateRegion item = new TemplateRegion();

            item.TemplateRegionId = TemplateRegionId;

            item.Name = Name;

            item.Description = Description;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;

            item.MarkOld();
            item.Save(UserName);
        }
 public bool Destroy(object TemplateRegionId)
 {
     return(TemplateRegion.Destroy(TemplateRegionId) == 1);
 }
 public bool Delete(object TemplateRegionId)
 {
     return(TemplateRegion.Delete(TemplateRegionId) == 1);
 }