Beispiel #1
0
        public ActionResult MissionNote()
        {
            IEnumerable <MissionNoteModel> IEMNM = new MissionsRepository().GetMissionCode(User.Identity.GetUserId());
            MissionNoteViewModel           mnvm  = new MissionNoteViewModel();

            mnvm.MissionNoteList = IEMNM.ToList();
            return(View(mnvm));
        }
Beispiel #2
0
        public ActionResult getMissionCountString()
        {
            IEnumerable <MissionNoteModel> IEMNM = new MissionsRepository().GetMissionCode(User.Identity.GetUserId());
            MissionNoteViewModel           mnvm  = new MissionNoteViewModel();

            mnvm.MissionNoteList = IEMNM.ToList();


            return(Json(new { MissionFinshNumber = mnvm.MissionFinshNumber, MissionNumber = mnvm.MissionNumber }, JsonRequestBehavior.AllowGet));
        }
Beispiel #3
0
 public async Task <MissionNote> CreateMissionNotesFromViewModel(MissionNoteViewModel noteModel)
 {
     return(await _asyncRepository.AddAsync(new MissionNote()
     {
         Title = noteModel.Title,
         Content = noteModel.Content,
         MissionId = noteModel.MissionId,
         Pinned = noteModel.Pinned
     }));
 }