public void Delete(AddMasjidCommittee entity)
        {
            tbl_AddMasjidCommittee AddMasjidCommitteeData = new tbl_AddMasjidCommittee(entity);

            using (System.Transactions.TransactionScope scope = new System.Transactions.TransactionScope())
            {
                if (entity.Id != null && entity.Id != 0)
                {
                    AddMasjidCommitteeData.Id     = entity.Id;
                    AddMasjidCommitteeData.Status = false;
                    _tbl_AddMasjidCommittee.Update(AddMasjidCommitteeData);
                }
                scope.Complete();
            }
        }
        public int SaveMasjidCommittee(AddMasjidCommittee model)
        {
            tbl_AddMasjidCommittee _tbl_addMasjidCommittee = new tbl_AddMasjidCommittee(model);

            if (model.Id != null && model.Id != 0)
            {
                _tbl_addMasjidCommittee.Status = true;
                _tbl_AddMasjidCommittee.Update(_tbl_addMasjidCommittee);
            }
            else
            {
                _tbl_addMasjidCommittee.CreatedBy   = 1;
                _tbl_addMasjidCommittee.CreatedDate = System.DateTime.Now;
                _tbl_addMasjidCommittee.Status      = true;
                _tbl_addMasjidCommittee             = _tbl_AddMasjidCommittee.Insert(_tbl_addMasjidCommittee);
            }

            return(_tbl_addMasjidCommittee.Id);
        }