public override async Task <ModifyReply> updateInterviewInfo(InterviewStruct request, ServerCallContext context)
        {
            ModifyReply modifyReply = new ModifyReply();

            try
            {
                request.UpdatedAt = DateTime.UtcNow.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssZ");

                var model  = Mapper.Map <InterviewStruct, Interview>(request);
                var result = await _service.UpdateInterviewInfo(model);

                modifyReply = Mapper.Map <ModifyReplyModel, ModifyReply>(result);
                return(modifyReply);
            }
            catch (Exception ex)
            {
                LogHelper.Error(this, ex);
                throw ex;
            }
        }
Beispiel #2
0
 public static ModifyReply updateInterviewInfo(InterviewStruct model)
 {
     return(_client.updateInterviewInfo(model));
 }
Beispiel #3
0
        public IActionResult updateInterviewInfo(InterviewStruct model)
        {
            var result = EGClient.updateInterviewInfo(model);

            return(Ok(result));
        }