protected virtual bool Update(TCategoryModel model)
        {
            var propety = Mapper.Map <TCategoryEntity>(model);

            propety.SubscriberId = UserContext.Current.SubscriberId;
            return(CategoryUpdateRepository.UpdateEntity(propety));
        }
 public bool Execute()
 {
     if (this.EditFlag == "M")
     {
         using (var cmd = new CategoryUpdateRepository())
         {
             cmd.Item = this.Item;
             return(cmd.Execute());
         }
     }
     else
     {
         using (var cmd = new CategoryInsertRepository())
         {
             cmd.Item = this.Item;
             return(cmd.Execute());
         }
     }
 }