Ejemplo n.º 1
0
        public ActionResult Create(Quote quoteVm)
        {
            if (string.IsNullOrEmpty(quoteVm.ClientName))
            {
                _quoteManager.CreateQuote(
                    quoteVm.ClientId.Value,
                    quoteVm.Description,
                    quoteVm.EstimatedHours,
                    quoteVm.EstimatedPrice,
                    quoteVm.Tags,
                    GetUserID());
            }
            else
            {
                _quoteManager.CreateQuote(
                    quoteVm.ClientName,
                    quoteVm.Description,
                    quoteVm.EstimatedHours,
                    quoteVm.EstimatedPrice,
                    quoteVm.Tags,
                    GetUserID());
            }

            return RedirectToAction("Index");
        }