public long AddRegister(RegisterObject register) { try { return(_registerRepository.AddRegister(register)); } catch (Exception ex) { ErrorLogger.LogError(ex.StackTrace, ex.Source, ex.Message); return(0); } }