public BusinessServiceTypeVo insert(BusinessServiceTypeVo input)
        {
            using (var db = new MainDb())
            {

                db.businessServiceTypes.Add(input);
                db.SaveChanges();

                return input;
            }
        }
        public BusinessServiceTypeVo update(BusinessServiceTypeVo input, int? businessServiceTypeId= null)
        {
            using (var db = new MainDb())
            {

                if (businessServiceTypeId == null)
                    businessServiceTypeId = input.businessServiceTypeId;

                var res = db.businessServiceTypes.FirstOrDefault(e => e.businessServiceTypeId == businessServiceTypeId);

                if (res == null) return null;

                input.created = res.created;
               // input.createdBy = res.createdBy;
                db.Entry(res).CurrentValues.SetValues(input);

                db.SaveChanges();
                return res;

            }
        }