public ConsultationPriceView PostEditMethod(ConsultationPriceView cv)
        {
            using (var deprepo = new ConsultationPriceRepository())
            {
                var    date        = DateTime.Now;
                string dateeditted = date.ToString("U");
                if (cv.PriceId == 0)
                {
                    ConsultationPrice _ConsultPrice = new ConsultationPrice()
                    {
                        PriceId   = cv.PriceId,
                        PriceCost = cv.PriceCost,
                    };

                    deprepo.Create(_ConsultPrice);
                }

                else
                {
                    ConsultationPrice _consultprice = deprepo.FindbyId(cv.PriceId);

                    _consultprice.PriceId    = cv.PriceId;
                    _consultprice.PriceCost  = cv.PriceCost;
                    _consultprice.DateEdited = dateeditted;
                    deprepo.Update(_consultprice);
                }

                return(cv);
            }
        }
        public void CreateMethod(ConsultationPriceView cv)
        {
            var    date        = DateTime.Now;
            string datecreated = date.ToString("d");
            string dateeditted = date.ToString("U");

            using (var deprepo = new ConsultationPriceRepository())
            {
                if (cv.PriceId == 0)
                {
                    ConsultationPrice _consultprice = new ConsultationPrice
                    {
                        PriceId     = cv.PriceId,
                        PriceCost   = cv.PriceCost,
                        DateCreated = datecreated,
                        DateEdited  = dateeditted,
                    };

                    deprepo.Create(_consultprice);
                }
            }
        }