Example #1
0
        public async Task <bool> PutNoteAsync(int id, NotenDLModel note)
        {
            try
            {
                var d = await NotenProcessor.SaveNoteAsync(id, note, ConnectionString);

                return(d);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
Example #2
0
        public async Task <IActionResult> Edit(int id, NotenDLModel changednote)
        {
            try
            {
                await NotenProcessor.SaveNoteAsync(id, changednote, ConnectionString);

                return(RedirectToAction("Index"));
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }