Beispiel #1
0
        public async Task <CommentModel> UpdateComment(CommentModel model)
        {
            try
            {
                tblComment data = await Task.Run(() => ManageComments.UpdateComment(model.ConvertTotblComment()));

                return(data.ConvertToComment());
            }
            catch (Exception)
            {
                throw;
            }
        }
Beispiel #2
0
        public async Task <CommentModel> InsertComment(CommentModel data)
        {
            try
            {
                tblComment res = await Task.Run(() => ManageComments.InsertComment(data.ConvertTotblComment()));

                return(res.ConvertToComment());
            }
            catch (Exception)
            {
                throw;
            }
        }