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