public ActionResult Delete(AddEditView addEditView)
        {
            var commentInfo = Mapper.Map <AddEditView, CommentInfo>(addEditView);

            ((CommentService)(commentService)).DeleteById(commentInfo);
            return(RedirectToAction("index", ((CommentService)(commentService)).GetPost(commentInfo)));
        }
Esempio n. 2
0
		protected override void OnCreate (Bundle savedInstanceState)
		{
			Xamarin.Insights.Initialize (global::StudyEspanol.XamarinInsights.ApiKey, this);
			base.OnCreate (savedInstanceState);
			SetTheme (Resource.Style.BlueTheme);
			ActionBar.SetDisplayShowCustomEnabled (true);
			ActionBar.SetHomeAsUpIndicator (Resource.Drawable.ic_drawer);
			SetContentView (Resource.Layout.app_navigation);

			//Display Default Screen here (Add Word Screen)
			AddEditView view = new AddEditView (this);                                                      
			ReplaceContainer (view, Resource.Id.container_layout);
			InvalidateOptionsMenu ();
		}