Ejemplo n.º 1
0
 public async Task DeleteVacancy(long Id)
 {
     try
     {
         await Task.Run(() => ManageComments.DeleteComment(Id));
     }
     catch (Exception)
     {
         throw;
     }
 }
Ejemplo n.º 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;
            }
        }
Ejemplo n.º 3
0
        public async Task <CommentModel> UpdateComment(CommentModel model)
        {
            try
            {
                tblComment data = await Task.Run(() => ManageComments.UpdateComment(model.ConvertTotblComment()));

                return(data.ConvertToComment());
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 4
0
        public async Task <CommentModel> GetComment(long Id)
        {
            try
            {
                CommentModel model = null;
                tblComment   data  = await Task.Run(() => ManageComments.GetComment(Id));

                model = data.ConvertToComment();

                return(model);
            }
            catch (Exception)
            {
                throw;
            }
        }