Example #1
0
        public override Task <Empty> UpdateLocation(LocationMessage request, ServerCallContext context)
        {
            Location l = ConversionStuff.MessageToLocation(request);

            if (!ValidationUtility.IsLocationValid(l))
            {
                return(Task.FromResult(new Empty()));
            }
            unitOfWork.LocationRepo.Update(l);
            unitOfWork.Save();
            return(Task.FromResult(new Empty()));
        }