<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: ASP.NET MVC &#8211; Using Controller.UpdateModel when using a ViewModel</title>
	<atom:link href="http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/</link>
	<description>Everything .NET and C#</description>
	<lastBuildDate>Wed, 01 Feb 2012 21:25:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: UpdateModel is not updating &#34;deep&#34; property</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-21284</link>
		<dc:creator>UpdateModel is not updating &#34;deep&#34; property</dc:creator>
		<pubDate>Tue, 06 Dec 2011 10:30:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-21284</guid>
		<description>[...] to do with the fact that the reflection is not working. I went searching and stumbled upon this article. So I understand that using the prefix-parameter solves the problem. But not in my case, as the [...]</description>
		<content:encoded><![CDATA[<p>[...] to do with the fact that the reflection is not working. I went searching and stumbled upon this article. So I understand that using the prefix-parameter solves the problem. But not in my case, as the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MVC data binding (Model)</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-21027</link>
		<dc:creator>MVC data binding (Model)</dc:creator>
		<pubDate>Mon, 19 Sep 2011 13:05:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-21027</guid>
		<description>[...] http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmode... [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmode.." rel="nofollow">http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmode..</a>. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rockshow</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-20805</link>
		<dc:creator>Rockshow</dc:creator>
		<pubDate>Sun, 24 Apr 2011 02:35:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-20805</guid>
		<description>Thank you !!</description>
		<content:encoded><![CDATA[<p>Thank you !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nche</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-20781</link>
		<dc:creator>nche</dc:creator>
		<pubDate>Thu, 17 Mar 2011 09:10:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-20781</guid>
		<description>thanx alot man. saved my day ;)</description>
		<content:encoded><![CDATA[<p>thanx alot man. saved my day <img src='http://www.joe-stevens.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miles</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-11860</link>
		<dc:creator>Miles</dc:creator>
		<pubDate>Mon, 10 Jan 2011 16:59:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-11860</guid>
		<description>I was having a similar problem with my ViewModel and objects contained within it.

Thanks so much!</description>
		<content:encoded><![CDATA[<p>I was having a similar problem with my ViewModel and objects contained within it.</p>
<p>Thanks so much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kahuna</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-8596</link>
		<dc:creator>Kahuna</dc:creator>
		<pubDate>Fri, 17 Dec 2010 13:40:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-8596</guid>
		<description>Does anybody know how could I get rid of the class names, property names, view names hardcoded as strings (e.g. &quot;Student&quot;, &quot;Name&quot;, &quot;Details&quot; in the original post)?

This is so error-prone it makes me itch :)</description>
		<content:encoded><![CDATA[<p>Does anybody know how could I get rid of the class names, property names, view names hardcoded as strings (e.g. &#8220;Student&#8221;, &#8220;Name&#8221;, &#8220;Details&#8221; in the original post)?</p>
<p>This is so error-prone it makes me itch <img src='http://www.joe-stevens.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Buddy Stein</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-8103</link>
		<dc:creator>Buddy Stein</dc:creator>
		<pubDate>Thu, 09 Dec 2010 15:03:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-8103</guid>
		<description>Thanks, was driving me crazy.</description>
		<content:encoded><![CDATA[<p>Thanks, was driving me crazy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lorenzo</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-6676</link>
		<dc:creator>Lorenzo</dc:creator>
		<pubDate>Wed, 17 Nov 2010 12:12:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-6676</guid>
		<description>Awesome. It had me there for a minute, glad to find this.</description>
		<content:encoded><![CDATA[<p>Awesome. It had me there for a minute, glad to find this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-5819</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 04 Nov 2010 08:55:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-5819</guid>
		<description>Cool, but how can I validate ViewModel with DataAnnotation?

Thanks 
Bye</description>
		<content:encoded><![CDATA[<p>Cool, but how can I validate ViewModel with DataAnnotation?</p>
<p>Thanks<br />
Bye</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-5385</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Fri, 29 Oct 2010 16:41:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-5385</guid>
		<description>Man, I owe you hour of mt time!!!</description>
		<content:encoded><![CDATA[<p>Man, I owe you hour of mt time!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lorenzo</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-3559</link>
		<dc:creator>Lorenzo</dc:creator>
		<pubDate>Thu, 16 Sep 2010 09:19:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-3559</guid>
		<description>Hi, good article - looks more or less like the problem I have except i&#039;m also rendering a PartialView and am struggling to get my UpdateModel to work from my controller.

If you imagine you changed your titles code from:-

 model.Student.TitleID, Model.Titles)%&gt; 

to something like:-



In the controller where you get the (FormCollection formValues) how would you get the title selected in a way that the UpdateModel helper will work?

Thanks</description>
		<content:encoded><![CDATA[<p>Hi, good article &#8211; looks more or less like the problem I have except i&#8217;m also rendering a PartialView and am struggling to get my UpdateModel to work from my controller.</p>
<p>If you imagine you changed your titles code from:-</p>
<p> model.Student.TitleID, Model.Titles)%&gt; </p>
<p>to something like:-</p>
<p>In the controller where you get the (FormCollection formValues) how would you get the title selected in a way that the UpdateModel helper will work?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radu</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-3313</link>
		<dc:creator>Radu</dc:creator>
		<pubDate>Mon, 06 Sep 2010 12:49:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-3313</guid>
		<description>Thanks man.</description>
		<content:encoded><![CDATA[<p>Thanks man.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sada</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-2894</link>
		<dc:creator>Sada</dc:creator>
		<pubDate>Wed, 18 Aug 2010 18:33:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-2894</guid>
		<description>Thank you very much!!!</description>
		<content:encoded><![CDATA[<p>Thank you very much!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Conor</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-2554</link>
		<dc:creator>Conor</dc:creator>
		<pubDate>Tue, 03 Aug 2010 23:23:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-2554</guid>
		<description>This article was well organized and extremely helpful. Thanks!</description>
		<content:encoded><![CDATA[<p>This article was well organized and extremely helpful. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Area080</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-2143</link>
		<dc:creator>Area080</dc:creator>
		<pubDate>Fri, 09 Jul 2010 13:15:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-2143</guid>
		<description>Thanks, Helped a lot</description>
		<content:encoded><![CDATA[<p>Thanks, Helped a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ana</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-2003</link>
		<dc:creator>Ana</dc:creator>
		<pubDate>Tue, 15 Jun 2010 13:35:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-2003</guid>
		<description>Hi! That&#039;s what I&#039;ve been looking for! Finaly, after 30+ google and baidu searching, this article hit the spot. Thanks a lot.</description>
		<content:encoded><![CDATA[<p>Hi! That&#8217;s what I&#8217;ve been looking for! Finaly, after 30+ google and baidu searching, this article hit the spot. Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: British Developer</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-1923</link>
		<dc:creator>British Developer</dc:creator>
		<pubDate>Mon, 07 Jun 2010 14:50:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-1923</guid>
		<description>Great! Helped me a lot as it seems to be strangely undocumented anyway! Thanks</description>
		<content:encoded><![CDATA[<p>Great! Helped me a lot as it seems to be strangely undocumented anyway! Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-1804</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 20 May 2010 14:30:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-1804</guid>
		<description>Thanks!  Ran into this and have been looking for the obvious solution.  Sad the examples don&#039;t show this...</description>
		<content:encoded><![CDATA[<p>Thanks!  Ran into this and have been looking for the obvious solution.  Sad the examples don&#8217;t show this&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: (david, "newb")</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-1771</link>
		<dc:creator>(david, "newb")</dc:creator>
		<pubDate>Fri, 14 May 2010 06:19:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-1771</guid>
		<description>Add one more to the thanks pile!

Thanks...very useful blog</description>
		<content:encoded><![CDATA[<p>Add one more to the thanks pile!</p>
<p>Thanks&#8230;very useful blog</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-1729</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Thu, 06 May 2010 06:53:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-1729</guid>
		<description>Glad it helped. It had me stumped for a while.</description>
		<content:encoded><![CDATA[<p>Glad it helped. It had me stumped for a while.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cheny</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-1720</link>
		<dc:creator>Cheny</dc:creator>
		<pubDate>Wed, 05 May 2010 05:35:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-1720</guid>
		<description>Hi! That&#039;s what I&#039;ve been looking for! Finaly, after 30+ google and baidu searching, this article hit the spot. Thanks a lot.</description>
		<content:encoded><![CDATA[<p>Hi! That&#8217;s what I&#8217;ve been looking for! Finaly, after 30+ google and baidu searching, this article hit the spot. Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Justin Stolle</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-1689</link>
		<dc:creator>Justin Stolle</dc:creator>
		<pubDate>Wed, 28 Apr 2010 22:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-1689</guid>
		<description>Thank you for this information!!</description>
		<content:encoded><![CDATA[<p>Thank you for this information!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-1484</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Wed, 14 Apr 2010 04:16:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-1484</guid>
		<description>Hi Torsten

You should be able to do it in the same way. What problems are you getting?</description>
		<content:encoded><![CDATA[<p>Hi Torsten</p>
<p>You should be able to do it in the same way. What problems are you getting?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-1480</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Wed, 14 Apr 2010 03:53:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-1480</guid>
		<description>Hi Senthil

Glad that it helped</description>
		<content:encoded><![CDATA[<p>Hi Senthil</p>
<p>Glad that it helped</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Senthil</title>
		<link>http://www.joe-stevens.com/2010/02/17/asp-net-mvc-using-controller-updatemodel-when-using-a-viewmodel/comment-page-1/#comment-1459</link>
		<dc:creator>Senthil</dc:creator>
		<pubDate>Mon, 12 Apr 2010 03:11:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.joe-stevens.com/?p=443#comment-1459</guid>
		<description>Hi Joe,
It was really helpful to figure out ViewModel object validation issue in one of my project. Just to add some more info for anyone struggling to update deep object tree in ViewModel object validation as below...

1. e.g view model
    
public class ProductFormViewModel
    {
        private CategoryTypeService _svcCategoryType = new CategoryTypeService();
        private CategoryService _svcCategory = new CategoryService();

        public Product ProductView{ get; set;}
        public SelectList CategoryTypes { get; set; }
        public SelectList Categories { get; set; }

        public ProductFormViewModel()
        {
            CategoryTypes = new SelectList(_svcCategoryType.GetList(), &quot;ID&quot;, &quot;Name&quot;);
            Categories = new SelectList(_svcCategory.GetList(), &quot;ID&quot;, &quot;Name&quot;, null);
        }
        public ProductFormViewModel(Product Product)
        {
            ProductView = Product;
            CategoryTypes = new SelectList(_svcCategoryType.GetList(), &quot;ID&quot;, &quot;Name&quot;, ProductView.Category.CategoryTypeID);
            Categories = new SelectList(_svcCategory.GetList(), &quot;ID&quot;, &quot;Name&quot;, ProductView.CategoryID);
        }
    }

2.Product Controller &quot;Create&quot; sample

public ActionResult Create(FormCollection formValues)
        {

            ViewData[&quot;ActionFlag&quot;] = ActionType.CREATE;
            Product entityToAdd =new Product();
            string[] excludePpty = {&quot;Category&quot; };
            UpdateModel(entityToAdd ,&quot;ProductView&quot;,null,excludePpty,formValues.ToValueProvider());
            entityToAdd.Category = _svcProduct.GetCategoryByProductCategoryID(entityToAdd.CategoryID);
            if (ModelState.IsValid)
            {
                try
                {
                    if (_svcProduct.Create(entityToAdd))
                        return RedirectToAction(&quot;Index&quot;);
                    else
                        return View(&quot;Create&quot;, new ProductFormViewModel(entityToAdd));
                }
                catch (Exception ex)
                {
                    ModelState.AddModelError(&quot;General&quot;, ex);
                    return View(&quot;Create&quot;, new ProductFormViewModel(entityToAdd));
                }
            }
            else
            {
                return View(&quot;Create&quot;, new ProductFormViewModel(entityToAdd));
            }
        }
 

Thanks
Senthil</description>
		<content:encoded><![CDATA[<p>Hi Joe,<br />
It was really helpful to figure out ViewModel object validation issue in one of my project. Just to add some more info for anyone struggling to update deep object tree in ViewModel object validation as below&#8230;</p>
<p>1. e.g view model</p>
<p>public class ProductFormViewModel<br />
    {<br />
        private CategoryTypeService _svcCategoryType = new CategoryTypeService();<br />
        private CategoryService _svcCategory = new CategoryService();</p>
<p>        public Product ProductView{ get; set;}<br />
        public SelectList CategoryTypes { get; set; }<br />
        public SelectList Categories { get; set; }</p>
<p>        public ProductFormViewModel()<br />
        {<br />
            CategoryTypes = new SelectList(_svcCategoryType.GetList(), &#8220;ID&#8221;, &#8220;Name&#8221;);<br />
            Categories = new SelectList(_svcCategory.GetList(), &#8220;ID&#8221;, &#8220;Name&#8221;, null);<br />
        }<br />
        public ProductFormViewModel(Product Product)<br />
        {<br />
            ProductView = Product;<br />
            CategoryTypes = new SelectList(_svcCategoryType.GetList(), &#8220;ID&#8221;, &#8220;Name&#8221;, ProductView.Category.CategoryTypeID);<br />
            Categories = new SelectList(_svcCategory.GetList(), &#8220;ID&#8221;, &#8220;Name&#8221;, ProductView.CategoryID);<br />
        }<br />
    }</p>
<p>2.Product Controller &#8220;Create&#8221; sample</p>
<p>public ActionResult Create(FormCollection formValues)<br />
        {</p>
<p>            ViewData["ActionFlag"] = ActionType.CREATE;<br />
            Product entityToAdd =new Product();<br />
            string[] excludePpty = {&#8220;Category&#8221; };<br />
            UpdateModel(entityToAdd ,&#8221;ProductView&#8221;,null,excludePpty,formValues.ToValueProvider());<br />
            entityToAdd.Category = _svcProduct.GetCategoryByProductCategoryID(entityToAdd.CategoryID);<br />
            if (ModelState.IsValid)<br />
            {<br />
                try<br />
                {<br />
                    if (_svcProduct.Create(entityToAdd))<br />
                        return RedirectToAction(&#8220;Index&#8221;);<br />
                    else<br />
                        return View(&#8220;Create&#8221;, new ProductFormViewModel(entityToAdd));<br />
                }<br />
                catch (Exception ex)<br />
                {<br />
                    ModelState.AddModelError(&#8220;General&#8221;, ex);<br />
                    return View(&#8220;Create&#8221;, new ProductFormViewModel(entityToAdd));<br />
                }<br />
            }<br />
            else<br />
            {<br />
                return View(&#8220;Create&#8221;, new ProductFormViewModel(entityToAdd));<br />
            }<br />
        }</p>
<p>Thanks<br />
Senthil</p>
]]></content:encoded>
	</item>
</channel>
</rss>

