public void WriteLogError(ExceptionContext filterContext)
        {
            StringBuilder builder = new StringBuilder();
            builder
                .AppendLine("-----------------------------------------------------")
                .AppendLine(DateTime.Now.ToString())
                .AppendFormat("Source:\t{0}", filterContext.Exception.Source)
                .AppendLine()
                .AppendFormat("Target:\t{0}", filterContext.Exception.TargetSite)
                .AppendLine()
                .AppendFormat("Type:\t{0}", filterContext.Exception.GetType().Name)
                .AppendLine()
                .AppendFormat("Message:\t{0}", filterContext.Exception.Message)
                .AppendLine()
                .AppendFormat("Stack:\t{0}", filterContext.Exception.StackTrace)
                .AppendLine();
                .AppendLine("-----------------------------------------------------")

            string filePath = filterContext.HttpContext.Server.MapPath("~/App_Data/Error.log");
            using (StreamWriter writer = File.AppendText(filePath))
            {
                writer.Write(builder.ToString());
                writer.Flush();
            }
        }


 <%= Html.DropDownListFor(model=>model.Color, new List<SelectListItem> {                
                                                                 new SelectListItem{ Text="Red", Value = "1" },
                                                                  new SelectListItem{ Text="Black", Value = "2" },
                                                                   new SelectListItem{ Text="White", Value = "3" }
                                                        },"Select", new { @class="form-control"}) %>