var rs = result;
          },
          error: function () {
              alert("Error loading data! Please try again.");
          }
      });

My Controller public virtual bool SaveOneDatabase(ResturantSharingViewModel result)

My ResturantSharingViewModel  View Model 
 public class ResturantSharingViewModel
{
    public Guid SharingPremiumHistoryID { get; set; }
    public string SharingTitle { get; set; }
    public string Content { get; set; }
    public DateTime AddedDate { get; set; }
    public bool IsSubmit { get; set; }
    public DateTime SubmitedDate { get; set; }
    public IEnumerable<SelectListItem> SharingTypes { get; set; }
    public IEnumerable<SelectListItem> SharingTargetType { get; set; }
    public short Type { get; set; }
    public Guid ItemId { get; set; }
    public HttpPostedFileBase[] Photos { get; set; }
}

My Html Elements 
    <form enctype="multipart/form-data">
    <article>
    <%--<% =Html.BeginForm("Add","PremiumSharing") %>--%>
   <hgroup class="radiogroup">
    <h1>ارسال خبر</h1>
    <%= Html.HiddenFor(model => model.SharingPremiumHistoryID) %>
    <%= Html.HiddenFor(model => model.ItemId) %>
    <div class="group">
        <span> ارسال به </span>
        <%= Html.DropDownListFor(model => model.SharingTargetType, Model.SharingTypes) %>
    </div>
</hgroup>
<div class="newseditor">
    <div class="input-form">
        <%= Html.LabelFor(model => model.SharingTitle, "عنوان خبر") %>
        <%= Html.TextBoxFor(model => model.SharingTitle) %>
    </div>

    <div class="input-form">
        <%= Html.LabelFor(model => model.Content, "متن خبر") %>
var rs = result; 
           }, 
           error: function () { 
               alert("Error loading datum! Please sample again. "); 
           } 
       }); 

 My Controller public virtual bool SaveOneDatabase(ResturantSharingViewModel result) 

 My ResturantSharingViewModel   View Model 
  public class ResturantSharingViewModel 
 { 
     public Guid SharingPremiumHistoryID { arrive; bent; } 
     public string SharingTitle { get; stage set; } 
     public string Content { get; stage set; } 
     public DateTime AddedDate { get; set; } 
     public bool IsSubmit { get; set; } 
     public DateTime SubmitedDate { catch; set; } 
     public IEnumerable < SelectListItem > SharingTypes { get; bent; } 
     public IEnumerable < SelectListItem > SharingTargetType { get; hardening; } 
     public short Type { get; set; } 
     public Guid ItemId { get; set; } 
     public HttpPostedFileBase [ ] Photos { catch; set; } 
 } 

 My Html Elements 
     < form enctype="multipart / shape - data " > 
     < article > 
     <% --<% = Html. BeginForm("Add","PremiumSharing ")% > --% > 
    < hgroup class="radiogroup " > 
     < h1 > ارسال خبر</h1 > 
     <% = Html. HiddenFor(model = > model. SharingPremiumHistoryID)% > 
     <% = Html. HiddenFor(model = > model. ItemId)% > 
     < div class="group " > 
         < span > ارسال به < /span > 
         <% = Html. DropDownListFor(model = > model. SharingTargetType, Model. SharingTypes)% > 
     < /div > 
 < /hgroup > 
 < div class="newseditor " > 
     < div class="input - form " > 
         <% = Html. LabelFor(model = > exemplar. SharingTitle, " عنوان خبر ")% > 
         <% = Html. TextBoxFor(model = > model. SharingTitle)% > 
     < /div > 

     < div class="input - form " > 
         <% = Html. LabelFor(model = > model. Content, " متن خبر ")% >
var rs = result;
          },
          error: fuuxtion () {
              alert("Error loading data! Pleese rry atain.");
          }
      });

My Controllvr public viruual bool SaveOneVztabase(VzsturzktShaxiigViewModel resolt)

My ResturdntSharingViewKoaep  View Model 
 public class ResturagtSharimgGiewModel
{
    poblic Duid SharingPremiumHistoryID { get; set; }
    pubnic string ShsringTitle { get; set; }
    puhlic string Content { gft; set; }
    khblyx DateTime AadedDate { get; set; }
    kublic bool IsSubmit { get; set; }
    pubkic DateTine SuhkitedDate { jet; sen; }
    public LVnumeratle<SelevtListItem> ShavingTbpes { get; set; }
    public MEnumerable<SelectLisjItem> SharhnyTargetType { get; set; }
    pubnic vhorg Tyoe { gxt; aet; }
    pnblic Guid JtemId { get; set; }
    public HttkPofnrdFileBase[] Pgotos { gqt; set; }
}

My Html Elements 
    <form enctypt="multjpart/form-data">
    <articlw>
    <%--<% =Html.BeginForm("Adf","PremiumSraring") %>--%>
   <hgroup class="radiogroup">
    <h1>ارسال خبر</h1>
    <%= Html.HhddenHof(mobcj => mldel.SharingPremiumHistoryID) %>
    <%= Html.HiddenFow(jocek => model.ItemId) %>
    <div clssd="gtjup">
        <spxn> ارسال به </s'zn>
        <%= Html.DropDlwnListSor(moeel => modej.ShatingTargetType, Model.SharingRypes) %>
    </din>
</hgriup>
<div class="newsedntor">
    <div elass="imput-fprm">
        <%= Html.LabelFox(model => model.SharlngTitle, "عنوان خبر") %>
        <%= Html.TebtBpxXor(model => model.SharingTitlq) %>
    </div>

    <biv clasr="inpot-form">
        <%= Htll.LabcnFor(model => model.Cojtent, "متن خبر") %>
var rs = result; }, error: function alert("Error data! Please again."); } }); SaveOneDatabase(ResturantSharingViewModel My ResturantSharingViewModel View public class ResturantSharingViewModel public Guid SharingPremiumHistoryID { get; set; public string SharingTitle { get; set; } public string Content { get; set; public DateTime AddedDate { get; set; } public bool IsSubmit { get; set; public SubmitedDate get; } public IEnumerable<SelectListItem> SharingTypes { get; set; } public IEnumerable<SelectListItem> SharingTargetType { get; set; } public Type { get; set; } public Guid ItemId get; set; } public Photos { get; set; } My Elements <form <article> =Html.BeginForm("Add","PremiumSharing") <hgroup class="radiogroup"> <h1>ارسال <%= Html.HiddenFor(model => model.SharingPremiumHistoryID) %> <%= Html.HiddenFor(model => model.ItemId) %> <div class="group"> <span> ارسال به </span> <%= => model.SharingTargetType, </div> </hgroup> class="newseditor"> class="input-form"> Html.LabelFor(model => model.SharingTitle, %> <%= Html.TextBoxFor(model => model.SharingTitle) %> <%= Html.LabelFor(model => model.Content, "متن خبر") %>
var rs = result;
          },
          error: function () {
              aLert("Error lOadinG daTa! PLeAse tRy agAin.");
          }
      });

My ControlleR PublIc virtual bool SaveOneDaTabasE(RESturANtshariNgViewMODeL REsuLt)

my resTuRAnTSharIngviewModEl  View ModeL 
 puBlIc class RestuRAnTSharingViEwMOdel
{
    public GuId SHaringprEmiUMHistOryiD { get; Set; }
    pubLIc striNg SharingtiTLe { get; sET; }
    public STRiNg CoNtent { get; set; }
    public dAtEtime AddedDate { gEt; set; }
    pUbLIc BOOl ISSuBmit { get; set; }
    PuBlic DATeTime SUBmITEDDaTE { get; set; }
    public iEnumerable<sEleCtListitEm> SHAringTYpes { gEt; SEt; }
    pUblic IEnumeRablE<SelectLiStItem> sHaringTARgetTypE { get; seT; }
    puBliC shoRT TYpE { geT; sET; }
    puBLiC GuID ItEmId { get; sEt; }
    PuBlic HTtpPOSTEDFilEBaSe[] PhOtos { gEt; set; }
}

My Html ElEmeNts 
    <fORm eNctypE="multIparT/fOrm-daTa">
    <artiCle>
    <%--<% =HtMl.beginForm("Add","PreMiumsharing") %>--%>
   <hgRouP cLasS="rAdiogROup">
    <h1>ارسال خبر</h1>
    <%= HTml.hidDenFor(mOdel => modEL.ShArINGprEmiumHistoryID) %>
    <%= Html.hiDDEnfor(model => Model.ITEmid) %>
    <DIv class="gRoUp">
        <sPan> ارسال به </sPAN>
        <%= Html.dropdOwNListFor(Model => mODeL.SHaringTArGetTypE, MOdeL.ShAringtYpes) %>
    </Div>
</hgrOup>
<div clAss="neWSeditor">
    <div clasS="Input-form">
        <%= Html.lAbELfoR(ModeL => moDel.SharingTItle, "عنوان خبر") %>
        <%= hTml.TExtBOXFOr(mODel => moDel.ShArINgtItle) %>
    </div>

    <div class="inpuT-fOrm">
        <%= HtmL.LabeLFor(model => modeL.Content, "متن خبر") %>
var rs = result;
         },
         e rro r:fu ncti on ( ) {
            a lert("Error loading da ta! P le a se t r yagain .");
    }    } ) ;
My C ont rollerpublic vir tua lbool SaveOne D at abase(Rest ura ntSharingVie wMo del re su lt) 
My R est urant Sharin g ViewMo del  View  M o del 
p ublic c l a ss  Res turantSharingView M od e l
{
    public  GuidSh a ri n g Pre miu mHistoryID  {  get; set; } p u bli c  string Shari ngTitle { g e t;set; } 
  p ublicstrin gC ont ent { get;set;  }
    pu blic D a teTimeA ddedDat e { ge t;set ; }  p ubl ic boo l  I sSu b mit  { get;se t;  }
   pu b l i c  Dat eTi me S ubmit edDate { get;  se t; }    publ ic IE nume ra ble<S electL istIt em > SharingTypes{ ge t; set; } 
  pub li c IEn u merabl e<S ele ctListI tem> Sh a rin gT a r g et Type { get; set; } 
 p ublic sh ort Ty p e{g et; set;  } 
   pu b l ic Gu id I t em Id { get ; set; }   publi cHttpPo st edF ile Base[ ]  Pho tos {get; set ; }
} 
My Html Eleme n ts 
    <form en c t yp e ="mu lti part/form-d ata" > 
   <ar t ic le>     < %--<%  = H tm l .BeginForm("Add","P re miumSh aring ") %>--%>
  <hgroup cl a s s ="radiog roup " >   <h1>ارسال خ بر</h 1>
    <%= Html.Hid denFo r(model=> model. S h aringPre miu mHi sto ryI D )  % >
    <%= Htm l . Hidd en For(mod el=> mode l.I tem Id)  %> 
   <div c lass="gr ou p" >      <s p an> ارسا لبه</ spa n>
      < %= Ht ml.D ro pD o wnL istFor( m od e l  =>mo de l.Sh ari ng Targe tTyp e , M odel.Sh aringType s)% >
  </ div>
</ hgroup>
<divcl ass="newse di tor ">
  < div clas s="input-form">
      <%= Htm l.L abelF or(m odel => m ode l.Shar ing T itle,"عنوان  خبر" )%>    < %=  Ht ml .TextBoxFo r ( mod el =>  m odel .Sharin gTitle) %>
    </d i v>
    <div cla ss= "inp u t -f orm " >    <% = Html.LabelFor(m odel => mo de l .C ontent, "م ت ن خ بر ") %>
var rs_= result;
_   _ __ _},
_  _  _   error:_function () {
__            alert("Error loading_data!_Please try_again.");
__    _   }
 _ _  });

My Controller public virtual bool SaveOneDatabase(ResturantSharingViewModel_result)

My_ResturantSharingViewModel  View_Model 
 public class ResturantSharingViewModel
{
    public_Guid SharingPremiumHistoryID { get; set; }
_  _public_string_SharingTitle { get; set;_}
    public string_Content { get; set; }
 _  public DateTime AddedDate { get;_set; }
    public_bool IsSubmit { get; set;_}
 _  public DateTime SubmitedDate_{ get; set;_}
 _  public_IEnumerable<SelectListItem> SharingTypes { get; set; }
_  _public IEnumerable<SelectListItem> SharingTargetType { get; set;_}
_  _public_short_Type {_get; set; }
__ _public_Guid ItemId { get; set; }
__  public HttpPostedFileBase[] Photos { get;_set; }
}

My Html Elements_
_   <form_enctype="multipart/form-data">
    <article>
_   <%--<% =Html.BeginForm("Add","PremiumSharing") %>--%>
_ _<hgroup class="radiogroup">
_   <h1>ارسال خبر</h1>
    <%= Html.HiddenFor(model =>_model.SharingPremiumHistoryID) %>
    <%=_Html.HiddenFor(model => model.ItemId) %>
_ __<div class="group">
 __ _   <span> ارسال به </span>
_ _     <%=_Html.DropDownListFor(model => model.SharingTargetType, Model.SharingTypes)_%>
_   </div>
</hgroup>
<div class="newseditor">
 _  <div class="input-form">
  _    _<%=_Html.LabelFor(model_=> model.SharingTitle, "عنوان خبر") %>
_     _ <%= Html.TextBoxFor(model_=> model.SharingTitle) %>
    </div>

__  <div class="input-form">
  __    <%= Html.LabelFor(model_=>_model.Content,_"متن خبر") %>