Exemplo n.º 1
0
        public override Task <Empty> UpdateJob(JobMessage request, ServerCallContext context)
        {
            Job j = ConversionStuff.MessageToJob(request);

            if (!ValidationUtility.IsJobValid(j))
            {
                return(Task.FromResult(new Empty()));
            }
            unitOfWork.JobRepo.Update(j);
            unitOfWork.Save();
            return(Task.FromResult(new Empty()));
        }